package com.wy.threeballsloading;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import androidx.appcompat.app.AppCompatActivity;

public class MainActivity extends AppCompatActivity {


    private ThreeBallsLoadingDrawable threeBallsLoadingDrawable;

    private Button button;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        threeBallsLoadingDrawable = findViewById(R.id.threeBallsLoadingDrawable);
        button = findViewById(R.id.button);
        button.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                threeBallsLoadingDrawable.innerMove();
            }
        });
    }
}